/**
 * 项目名称:
 *
 * @Author: 夏国倩
 * @Date: 2023/10/14 11:45
 * @Copyright
 */
package Reflect;

public class People {
    private String name;
    private int age;
    protected  String adrr;
    boolean flag;

    public People() {
        System.out.println("无参构造方法！");
    }

    public People(String name, int age, String adrr, boolean flag) {
        this.name = name;
        this.age = age;
        this.adrr = adrr;
        this.flag = flag;
        System.out.println("有参构造方法！");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getAdrr() {
        return adrr;
    }

    public void setAdrr(String adrr) {
        this.adrr = adrr;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }
}
